<h1>Acquisition methods</h1>

<% method_data = Array.new %><% method_labels = Array.new %>

<% @acquisition_methods.each do |m| %>
	<% method_data << m.entities_count %>
	<% method_labels << m.name %>
	
<% end %>

<div class="chart">
<%= google_chart("440x220", {:type => "pie", 
	:data => method_data, 
	:labels => method_labels
	}) 
	%></div>

<div class="selected_data">	
<% @acquisition_methods.each do |m| %>
	<li><%= link_to m.name, museum_acquisition_method_path(@museum, m)%> (<%= pluralize(m.entities_count, "object")%>)</li>
<% end %>
</div>
<div style="clear:both">&nbsp;</div>